$OpenBSD: patch-TelepathyQt_Farstream_CMakeLists_txt,v 1.3 2015/09/27 08:23:21 ajacoutot Exp $

Unbreak build: missing include dirs, wrong linking order.

https://bugs.freedesktop.org/show_bug.cgi?id=91040

--- TelepathyQt/Farstream/CMakeLists.txt.orig	Tue Sep  9 00:13:43 2014
+++ TelepathyQt/Farstream/CMakeLists.txt	Sun Sep 27 10:02:48 2015
@@ -2,8 +2,9 @@ if(FARSTREAM_COMPONENTS_FOUND)
     include_directories(${TELEPATHY_FARSTREAM_INCLUDE_DIR}
                         ${TELEPATHY_GLIB_INCLUDE_DIR}
                         ${FARSTREAM_INCLUDE_DIR}
-                        ${GSTREAMER_INCLUDE_DIR}
+                        ${GSTREAMER_INCLUDE_DIRS}
                         ${GLIB2_INCLUDE_DIR}
+                        ${ICONV_INCLUDE_DIR}
                         ${LIBXML2_INCLUDE_DIR}
                         ${DBUS_INCLUDE_DIR})
 
@@ -39,13 +40,14 @@ if(FARSTREAM_COMPONENTS_FOUND)
 
     # Link
     target_link_libraries(telepathy-qt${QT_VERSION_MAJOR}-farstream
-        ${QT_QTDBUS_LIBRARY}
-        ${QT_QTCORE_LIBRARY}
-        ${GOBJECT_LIBRARIES}
+        ${TP_QT_LIBRARY_LINKER_FLAGS}
         ${TELEPATHY_FARSTREAM_LIBRARIES}
         ${TELEPATHY_GLIB_LIBRARIES}
         telepathy-qt${QT_VERSION_MAJOR}
-        ${TP_QT_LIBRARY_LINKER_FLAGS})
+        ${QT_QTDBUS_LIBRARY}
+        ${QT_QTCORE_LIBRARY}
+        ${GOBJECT_LIBRARIES}
+        )
 
     if (ENABLE_COMPILER_COVERAGE)
         target_link_libraries(telepathy-qt${QT_VERSION_MAJOR}-farstream gcov)
